﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

/// <summary>
/// Summary description for getValueOfTextBox
/// </summary>
public class TextBoxHandler
{
    List<TextBox> textList;
    public TextBoxHandler(List<TextBox> textList)
	{
        this.textList = textList;
        getTextBoxContaintValue();
	}

    public void getTextBoxContaintValue()
    {
        Variables.TextBoxList = new List<TextBox>();
        foreach (var textBox in textList)
        {
            if (textBox.Text.Trim().Length > 0)
            {
                Variables.TextBoxList.Add(textBox);
            }
        }
    }
}